<?php
namespace app\common\validate;

use think\Validate;

class LoginUsers extends Validate
{
    protected $rule = [
        'username'=>'unique:loginusers',
    ];

    protected $message = [
        'username.unique'=>'用户名已存在',
    ];
    protected $scene = [
        'add'=>['username'],
        'edit'=>['username'],
    ];
}